package com.chinasofti.zbestadmin.service.impl;

import com.chinasofti.zbest.service.info.OrderInfo;
import com.chinasofti.zbestadmin.dao.model.Order;
import com.chinasofti.zbestadmin.dao.OrderMapper;
import com.chinasofti.zbestadmin.dao.model.OrderTM;
import com.chinasofti.zbestadmin.dao.model.Zborder;
import com.chinasofti.zbestadmin.service.IOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 订单 服务实现类
 * </p>
 *
 * @author zbestadmin
 * @since 2019-05-29
 */
@Service
@Slf4j
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements IOrderService {

    private IOrderService iOrderService;

    @Override
    public List<OrderInfo> queryDelivered(String orderStatus1, String orderStatus2) {
        log.info("订单显示");
        List<OrderInfo> delivered=iOrderService.queryDelivered(orderStatus1,orderStatus2);
        return delivered;
    }

    @Override
    public Map<String, OrderInfo> updateWaitShipped(String orderNum,String orderStatus) {
        log.info("修改发货为已发货");
        Map<String ,OrderInfo> updateWaitShipped=iOrderService.updateWaitShipped(orderNum,orderStatus);
        log.info("{}",updateWaitShipped);
        return updateWaitShipped;
    }
}
